package com.safeneeds.sysmana.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.safeneeds.sysmana.dto.DataStoreLog;
import com.safeneeds.sysmana.ser.ISysLogService;
import com.safeneeds.util.base.BaseAction;
import com.safeneeds.util.page.PageInfo;

/**
 * 日志管理
 * @author gaof
 * @date 2016年12月21日
 */
@Controller
@RequestMapping("system")
public class LogAction extends BaseAction{

	@Resource(name="sysLogService")
	private ISysLogService sysLogService;
	
	/**
	 * 日志列表
	 * @return
	 */
	@RequestMapping("logList.do")
	public String logList(ModelMap modelMap, PageInfo pageInfo, DataStoreLog dataStore){
		
		PageInfo retPageInfo = sysLogService.listLogPage(pageInfo, dataStore);
		modelMap.put("pageInfo", retPageInfo);
		modelMap.put("dataStore", dataStore);
		
		return getViewsModelPathSys("sysmana/log/logList");
	}
	
}
